/*
time：2015-01-05
explain：接收三个整数，对其按从大到小输出。
programmer：友缘
 */

package com.yuan.algorithms.Algorithm_1;

import java.util.Scanner;
public class 三整数排序 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int a,b,c;
            int x,y,z;
            a = sc.nextInt();
            b = sc.nextInt();
            c = sc.nextInt();
            x = a;
            if (b<x) {
                x = b;
            }
            if (c<x) {
                x = c;
            }
            z = a;
            if (b>z) {
                z = b;
            }
            if (c>z) {
                z = c;
            }
            y = a + b + c - x - z;
            System.out.println(x+","+y+","+z);
        }
    }
    
}
